package test.dao.model;

import java.io.Serializable;

/**
 * 
 * @TableName house
 */
public class House<T> implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String location;

    /**
     * 
     */
    private Integer price;

    /**
     * 
     */
    private T data;

    /**
     * 
     */
    private TypeEnum type;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getLocation() {
        return location;
    }

    /**
     * 
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * 
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public TypeEnum getType() {
        return type;
    }

    public void setType(TypeEnum type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "House{" +
                "id=" + id +
                ", location='" + location + '\'' +
                ", price=" + price +
                ", data='" + data + '\'' +
                ", type=" + type +
                '}';
    }
}